from tkinter import *
from tkinter import ttk

class display:
    def __init__(self):
        self.question = "question"
    
    root = Tk()
    root.title("Tom's sample program")
    
    mainframe = ttk.Frame(root, padding="3 8 13 18")
    mainframe.pack()
    def getvalue():
        arb = display.entry.get()
        #display.bottomlabel.configure(text = arb)
        print (arb)

    frame = Frame(mainframe)
    frame.pack()
    try:
        display.question
    except:
        display.question = "question"
    query = Label(frame, text = display.question)
    query.grid(column =0, row=0, columnspan = 2)
    entry = Entry(frame, width=40)
    entry.grid(row = 1, column = 0, columnspan = 2)
    confirm = Button(frame, text="Enter", command=display.getvalue)
    confirm.grid(row = 2, column = 0)
    confirm.bind('<l>', getvalue)
    cancel = Button(frame, text="No") #, command=display.prohibited_social_harms)
    cancel.grid(row = 2, column = 1)
    bottomlabel = ttk.Label(frame, text = " ")
    bottomlabel.grid(row-3, column =0, columnspan = 2)

    frame2 = Frame(mainframe)
    frame2.pack()

        
class crime:
    def __init__():
        actus_reus = ""
        mens_rea = ""
        prohibited_social_harm = ""

    possible_mens_rea = "negligence", "reckless", "knowing", "purposeful"

        
        

#crime.prohibited_social_harms()

##    def askyesno(question):
##        frame = Frame(display.mainframe)
##        frame.grid()
##        query = Label(frame, text = question)
##        query.grid(column =0, row=0, columnspan = 2)
##        yesButton = Button(frame, text="Yes")
##        yesButton.grid(column = 0, row = 1)
##        noButton = Button(frame, text="No")
##        noButton.grid(column = 1, row = 1)
##
##    def askyesnomaybe(question):
##        frame = Frame(display.mainframe)
##        frame.grid()
##        query = Label(frame, text = question)
##        query.grid(column =0, row=0, columnspan = 3)
##        yesButton = Button(frame, text="Yes")
##        yesButton.grid(column = 0, row = 1)
##        noButton = Button(frame, text="No")
##        noButton.grid(column = 1, row = 1)
##        maybeButton = Button(frame, text="Should be litigated")
##        maybeButton.grid(column = 2, row = 1)
